<?php
exec("wmic LOGICALDISK get name",$dir);
echo json_encode($dir);
?>